package br.com.foxline.atlasmobile.entities;

import java.io.Serializable;
import java.util.Date;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable
public class Annex implements Serializable {

	@DatabaseField(columnName = "id", generatedId = true)
	private Long id;

	@DatabaseField
	private String name;
	
	@DatabaseField
	private String description;
	
	@DatabaseField
	private String cod;

	@DatabaseField
	private String uri;
	
	@DatabaseField
	private String UUID;

	@DatabaseField
	private Date create_at;

	@DatabaseField
	private String type;

	@DatabaseField
	private String content;

	@DatabaseField(columnName = "imovel", foreignAutoRefresh = true, foreign = true)
	private Imovel imovel;
	
	@DatabaseField
	private boolean enviado;
	
	public Annex(String name, String description, String cod, String uri,
			String uUID, Date create_at, String type, String content,
			Imovel imovel) {
		super();
		this.name = name;
		this.description = description;
		this.cod = cod;
		this.uri = uri;
		UUID = uUID;
		this.create_at = create_at;
		this.type = type;
		this.content = content;
		this.imovel = imovel;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getId() {
		return id;
	}

	public String getContent() {
		return content;
	}

	public String getUUID() {
		return UUID;
	}

	public void setUUID(String uUID) {
		UUID = uUID;
	}

	public String getCod() {
		return cod;
	}

	public void setCod(String cod) {
		this.cod = cod;
	}


	public void setContent(String content) {
		this.content = content;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public Date getCreate_at() {
		return create_at;
	}

	public void setCreate_at(Date create_at) {
		this.create_at = create_at;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Imovel getImovel() {
		return imovel;
	}

	public void setImovel(Imovel imovel) {
		this.imovel = imovel;
	}

	public Annex(Long id, String name, String description, String cod,
			String uri, String uUID, Date create_at, String type,
			String content, Imovel imovel) {
		super();
		this.id = id;
		this.name = name;
		this.description = description;
		this.cod = cod;
		this.uri = uri;
		UUID = uUID;
		this.create_at = create_at;
		this.type = type;
		this.content = content;
		this.imovel = imovel;
	}

	public Annex() {
		super();
	
	}

	public boolean isEnviado() {
		return enviado;
	}

	public void setEnviado(boolean enviado) {
		this.enviado = enviado;
	}

	

}
